<?php  $id=isset($fieldId) ? $fieldId : 0; ?>

<div class="formline">
    <?php echo CHtml::link('',Yii::app()->createUrl('admin/settings/deleteDropDownField',array('id'=>$id)),array(
        'onclick'=>'Setting.deleteDropDownField($(this)); return false;',
        'class'=>'remove'
    )); ?>
</div>

<div class="formline">
    <label><?php echo $model->getAttributeLabel('key'); ?></label>

    <?php echo $form->textField($model,'dropDownValueKey',array(
        'class'=>'input-short small',
        'id'=>false,
        'name'=>'Setting[dropDownValueKey][]',
    )); ?>
</div>

<?php $this->widget('MultiLangFields',array('settings'=>array(
    'model'=>$model,
    'name'=>'dropDownValueName',
    'divClass'=>'formline',
    'inputClass'=>'input-short small',
    'inputIsArray'=>true,
    'inputValue'=>isset($inputValue) ? $inputValue : $model->dropDownValueName,
))); ?>
